home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / sos3-2.lha / bin / sos-sil < prev   
Text File  |  1992-02-13  |  1KB  |  37 lines

  1. #!/bin/sh
  2. # --------------------------------------------------------------------------
  3. # Copyright 1992 by Forschungszentrum Informatik (FZI)
  4. #
  5. # You can use and distribute this software under the terms of the licence
  6. # you should have received along with this program.
  7. # If not or if you want additional information, write to
  8. # Forschungszentrum Informatik, "STONE", Haid-und-Neu-Strasse 10-14,
  9. # D-7500 Karlsruhe 1, Germany.
  10. # --------------------------------------------------------------------------
  11. # sos-sil - 03/09/91 - Dietmar Theobald
  12. #
  13. # sos-sil <schema> [-r] [-a <file>...] [-p] [-l]
  14. #
  15. # SOS schema implementation editor which is used to maintain the association of
  16. # object files/libraries with <schema>.
  17. # -r:           remove the association with all object files associated so far
  18. # -a <file>...: associate the given files with <schema>
  19. # -p:        print the object files associated with <schema>
  20. # -l:        load the object files associated to <schema>
  21. #
  22. BINDIR=${SOSPATH-__SOS_INSTALLED_PATH__}/bin/
  23.  
  24. test="${SOSCONTAINER?}"
  25.   wd=`pwd`
  26.  
  27. for arg
  28. do
  29.    case "$arg" in
  30.       *.a | *.o) [ "`expr substr "$arg" 1 1`" = '/' ] || arg="$wd/$arg" ;;
  31.    esac
  32.    args="$args $arg"
  33. done
  34.  
  35. ${BINDIR}sil $args || exit 1
  36.